import { reactive,toRefs } from 'vue'
export default () => {
  const posObj = reactive({x:0,y:0})
  window.addEventListener('click',function (event) {
    posObj.x = event.clientX
    posObj.y = event.clientY
  })
  return {
    ...toRefs(posObj)
  }
}
